class Jspang{
    public name:string
    public age : number
    public skill: string
    constructor(name:string,age:number,skill:string){
        this.name = name
        this.age = age
        this.skill = skill
    }
    public interest(){
        console.log(this.name+'找小姐姐')
    }
}
let jspangObj:Jspang = new Jspang('技术胖',18,'web')
jspangObj.interest()

class xiaoming extends Jspang{
    public yangzi:string = '牛B';
    public interest(){
        super.interest()
        console.log('建立伟大的商业帝国')             //类方法的c重写
    }
    public gongzuo(){
        console.log('alibaba')
    }
}
let son = new xiaoming('mySon',5,'说话')
son.interest()
son.gongzuo()